package com.pkuse.bjousystem.repository.school;

import org.apache.commons.lang3.StringUtils;

import java.util.Map;
import java.util.Optional;

public class SchoolIDOption {
    private static final String ID_KEY = "schoolID";

    private Optional<String> id;

    public SchoolIDOption(Map<String, String> rqBody) {
        this.id = Optional.ofNullable(StringUtils.trimToNull(rqBody.get(ID_KEY)));
    }

    public Optional<String> getId() {
        return id;
    }
}
